<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="2.js"></script>
</head>
<body>
<script>
    function sum(...args) {
        console.info(...args)
        if ([...args].length == 1) {


        } else {
            console.info(arguments.callee(n-1))
        }
    }

  console.info(sum(2,3,5))
  console.info(sum(2)(3)(3))
</script>
</body>
</html>